package com.yonyou.brigade.ybz.model;

import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

/**
 * 数据建模
 *
 * @author kangfw5@yonyou.com
 * @since 2018-08-15
 */
@TableName("cnv_outentitydef")
public class CnvOutentitydef extends Model<CnvOutentitydef> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;
    /**
     * 单据类型编码
     */
    private String billtypecode;
    /**
     * 关联实体ID
     */
    private String relentity;
    /**
     * 是否根节点
     */
    private Boolean rootnode;
    /**
     * 系统编码
     */
    private String systemcode;
    private Date ts;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getBilltypecode() {
        return billtypecode;
    }

    public void setBilltypecode(String billtypecode) {
        this.billtypecode = billtypecode;
    }

    public String getRelentity() {
        return relentity;
    }

    public void setRelentity(String relentity) {
        this.relentity = relentity;
    }

    public Boolean getRootnode() {
        return rootnode;
    }

    public void setRootnode(Boolean rootnode) {
        this.rootnode = rootnode;
    }

    public String getSystemcode() {
        return systemcode;
    }

    public void setSystemcode(String systemcode) {
        this.systemcode = systemcode;
    }

    public Date getTs() {
        return ts;
    }

    public void setTs(Date ts) {
        this.ts = ts;
    }

    public static final String ID = "id";

    public static final String BILLTYPECODE = "billtypecode";

    public static final String RELENTITY = "relentity";

    public static final String ROOTNODE = "rootnode";

    public static final String SYSTEMCODE = "systemcode";

    public static final String TS = "ts";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "CnvOutentitydef{" +
                "id=" + id +
                ", billtypecode=" + billtypecode +
                ", relentity=" + relentity +
                ", rootnode=" + rootnode +
                ", systemcode=" + systemcode +
                ", ts=" + ts +
                "}";
    }
}
